/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package controller;

import java.util.List;
import model.dao.service.Course_ShiftDetailDAOService;
import model.dao.Course_ShiftDetailsDAO;
import model.entities.Course;
import model.entities.Course_ShiftDetails;
import model.entities.Shift;

/**
 *
 * @author K u Ku
 */
public class Course_ShiftDetailsController implements Course_ShiftDetailDAOService{

    @Override
    public List<Course_ShiftDetails> getCourse_ShiftDetailsList() {
        return Course_ShiftDetailsDAO.getInstance().getCourse_ShiftDetailsList();
    }

    @Override
    public Course_ShiftDetails getCourse_ShiftDetailsByID(int course_ShiftDetailsID) {
        return Course_ShiftDetailsDAO.getInstance().getCourse_ShiftDetailsByID(course_ShiftDetailsID);
    }

    @Override
    public boolean insertCourse_ShiftDetails(Course_ShiftDetails CSD) {
        return Course_ShiftDetailsDAO.getInstance().insertCourse_ShiftDetails(CSD);
    }

    @Override
    public boolean updateCourse_ShiftDetails(Course_ShiftDetails CSD) {
        return Course_ShiftDetailsDAO.getInstance().updateCourse_ShiftDetails(CSD);
    }

    @Override
    public boolean deleteCourse_ShiftDetails(int id) {
        return Course_ShiftDetailsDAO.getInstance().deleteCourse_ShiftDetails(id);
    }

    @Override
    public List<Course_ShiftDetails> findCourse_ShiftDetailsByID(int id) {
        return Course_ShiftDetailsDAO.getInstance().findCourse_ShiftDetailsByID(id);
    }

    @Override
    public List<Course_ShiftDetails> findCourse_ShiftDetailsByDay(int dayOfWeek) {
        return Course_ShiftDetailsDAO.getInstance().findCourse_ShiftDetailsByDay(dayOfWeek);
    }

    @Override
    public List<Course> getCourseByShiftID(int shiftID) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List<Shift> getShiftByCourseID(int courseID) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
}
